<div class="ui basic segment">
  <h1 class="ui dividing header">
    <%= link("People", to: Routes.admin_person_path(@conn, :index)) %>
    &raquo;
    <%= link(@person.name, to: Routes.admin_person_path(@conn, :show, @person.id)) %>
    &raquo;
    News Items (<%= @page.total_entries %>)
  </h1>
</div>

<div class="ui basic segment">
  <%= render(NewsItemView, "_table.html", Map.merge(assigns, %{status: :published, items: @published})) %>
  <%= pagination_links(@conn, @page, [@person], path: &Routes.admin_person_path/4, action: :news) %>
</div>
